import {isEmpty,showToast} from '../../utils/util'
const app=getApp();
Component({
  options: {
    addGlobalClass: true,
  },
  data: {
    cityIndex: 0,
    serachContent:"",
    pickerCity: ["全部", "北京", "鞍山", "海城", "营口", "辽阳", "淄博", "济南", "大连", "西安", "沈阳"],
    listData:[],
    swiperList: [{"id":1,"icon":"https://mmye.top/imgs/lowcode/lowcode1.jpg"},{"id":2,"icon":"https://mmye.top/imgs/lowcode/lowcode2.jpg"},{"id":3,"icon":"https://mmye.top/imgs/lowcode/lowcode3.png"}],
  }, 

  lifetimes: {
    attached: function () { 
      
    },
    moved: function () { },
    detached: function () { },
  },
  attached: function () { },
  ready: function() { },

  pageLifetimes: {
    // 组件所在页面的生命周期函数
    show: function () { },
    hide: function () { },
    resize: function () { },
  },

  methods: {
    cityPickerChange(e) {
      this.setData({
        cityIndex: e.detail.value
      })
      
    },
    bindInput(e) {
      this.data.searchContent=e.detail.value;
    },
    toSearch(e) {
      if(isEmpty(this.data.searchContent)){
        showToast('请输入要搜索的内容');
        return;
      }
      console.log('')
    },
  }

})
